<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>绩效考核-上级对下级测评结果</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="static/css/font.css">
    <link rel="stylesheet" href="static/css/xadmin.css">
    <script type="text/javascript" src="static/js/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="static/lib/layui/layui.js"></script>
    <script type="text/javascript" src="static/js/xadmin.js"></script>
</head>

<body class="layui-anim layui-anim-up">

<div class="x-nav">
		<span class="layui-breadcrumb"> <a>民主测评结果</a> <a> <cite>上级对下级测评结果</cite></a>
		</span> <a class="layui-btn layui-btn-small"
                   style="line-height: 1.6em; margin-top: 3px; float: right"
                   href="javascript:location.replace(location.href);" title="刷新"> <i
        class="layui-icon" style="line-height: 30px">ဂ</i></a>
</div>
<div>
    <div class="top-bar">
        <button class="layui-btn" id="downloadBtn">导出 Excel</button>
    </div>
    <div class="main-table">
        <table id="demo" class="layui-table" lay-filter="demo"></table>
    </div>

</div>
</body>
<script>

    layui.use(['laydate','table','util'], function(){
        var laydate = layui.laydate
            ,table = layui.table;

        //第一个实例
        table.render({
            elem: '#demo'
            ,height: 'full'
            ,url: 'AppraisalAss/H2LDemocratic.do'
            ,page: true
            ,method: "get"
            ,initSort: {field: 'did', type: 'desc'}
            ,defaultToolbar: ['filter', 'exports', 'print']
            ,id:'demo'
            ,cols: [[ //表头
                {field:'dId', rowspan:2, title: '部门 ID',  align: 'center',fixed: 'left'}
                ,{field:'dName', rowspan:2, title: '部门名称', align: 'center',fixed: 'left'}
                ,{field:'eAccount', rowspan:2, title: '评价人工号', align: 'center',fixed: 'left'}
                ,{field: 'eName', rowspan:2, title: '评价人姓名', align: 'center',fixed: 'left'}
                ,{field:'ratedAccount', rowspan:2, title: '被评人工号', align: 'center',fixed: 'left'}
                ,{field: 'ratedEName', rowspan:2, title: '被评人姓名', align: 'center',fixed: 'left'}
                ,{field: 'status', rowspan:2, title: '状态',align: 'center',edit:'text'}
                ,{field: 'type', rowspan:2, title: '行政编制',align: 'center',edit:'text'}
                // ,{field: 'fRmk', rowspan:2, title: '备注', align: 'center',edit:'text'}
            ]]
        });

        var $ = layui.$, active = {
            reload : function() {
                var demoReload = $('#demoReload');
                //执行重载
                table.reload('demo', {
                    where : {

                    }
                });
            }
        };

        $('#downloadBtn').click(function () {
            window.open('AppraisalAss/H2LDemocratic.do?download=true', '_blank');
        })
    });
</script>

<style>
    .top-bar {
        margin-top: 1rem;
        margin-left: 1rem;
    }
    .main-table {
        text-align: center;
    }
</style>

</html>
